package com.hdl.design.pattern.engine.facade;

import com.hdl.design.pattern.engine.constants.TradeTypeStrategyEnum;
import com.hdl.design.pattern.engine.utils.StringHelper;

import java.util.Map;

/**
 * 类名 TradeTypeFacade
 * 描述 交易码类型判断Facade
 *
 * @author hedonglin
 * @version 1.0
 * @date 2019/9/25 17:40
 */
public class TradeTypeFacade {

    public TradeTypeStrategyEnum getTradeTypeByReqMap(Map<String, Object> reqMap){
        // 获取交易码
        String transCode = StringHelper.getMultiLevelReqParam("transCode,transCode2", reqMap);

        // 根据交易码判断属于哪个渠道


        return TradeTypeStrategyEnum.CIP_BIND_CARD;
    }

}
